package com.menggudf.query;


/**
 * @author zengqd
 */

public class PageRequest {

    private Integer pageSize;

    /**
     * 开始行数
     */
    private Integer startRow;
    /**
     * 当前页数
     */
    private Integer current;

    public void setCurrent(Integer current) {
        this.current = current;
    }

    public Integer getCurrent() {
        if(current ==null){
            this.current = 1;
        }
        return this.current;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageSize() {
        if(pageSize ==null){
            this.pageSize = 10;
        }
        return this.pageSize;
    }

    public void setStartRow(Integer startRow) {
        this.startRow = startRow;
    }

    public Integer getStartRow() {
        if(startRow ==null){
            this.startRow = 0;
        }
        return this.startRow;
    }
}
